<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="tw.com.msig.b2c.car.setting.vo.ZipcodeVo"%>
<%@ page import="tw.com.msig.b2c.car.setting.vo.CityVo" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/layout/meta.jsp" />
</head>
<body>
	<div id="header">
		<jsp:include page="/layout/header.jsp" />
	</div>
	<div id="navigator">
		<jsp:include page="/layout/navigator.jsp" />
	</div>
	<div id="container">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">鄉鎮市管理 &gt; 鄉鎮市新增</h3>
			</div>
			<div class="panel-body">
				<form id="form" class="form-horizontal"
					action="<%=request.getContextPath()%>/settings/zipCode.do?sActionType=insert" method="post">
					<div class="form-group">
						<label for="cityid" class="col-sm-1 control-label">城市ID</label>
						<div class="col-sm-11">
						
							<select name="cityId"  class="form-control">
							
								<%
									List<CityVo> cityVos = (List<CityVo>) request.getAttribute("cityVos");
									
																
								
									for(CityVo city:cityVos) {
										
										//pageContext.setAttribute("city", city);
								%>
										<option value="<%=city.getId()%>"> <%=city.getName()%> </option>
								<%
									}
								%>
							</select>
						
						
							 <span class="help-block"><span class="text-danger"></span></span>
						</div>
					</div>
					<div class="form-group">
						<label for="name" class="col-sm-1 control-label">名稱</label>
						<div class="col-sm-11">
							<input type="text" title="要輸入正確的名稱喔!" class="form-control"
								id="name" name="name" placeholder="請輸入名稱" value=""> <span
								class="help-block"><span class="text-danger"></span></span>
						</div>						
					</div>
					<div class="form-group">
						<label for="zipcode" class="col-sm-1 control-label">郵遞區號</label>
						<div class="col-sm-11">
							<input type="text" title="要輸入正確的郵遞區號喔!" class="form-control"
								id="zipcode" name="zipcode" placeholder="請輸入郵遞區號" value=""> <span
								class="help-block"><span class="text-danger"></span></span>
						</div>						
					</div>				

					<button id="submitBtn" class="btn btn-primary btn-lg">新增</button>
					<a href="<%=request.getContextPath()%>/settings/zipCode.do?sActionType=list"
						class="btn btn-warning btn-lg">回到列表</a>
				</form>
			</div>
		</div>

	</div>
</body>
</html>